score = '2:3'
all_goals = int(score.split(':')[0]) + int(score.split(':')[1]) if score != None else 0
print(all_goals)